//
//  BaseViewController.swift
//  ModernFoodWebsite
//
//  Created by apple on 16/5/31.
//  Copyright © 2016年 Lonnie. All rights reserved.
//

import UIKit

class BaseViewController: UIViewController {
    override func prefersStatusBarHidden() -> Bool {
        return true
    }
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {

        if segue is AFBlurSegue {
            let dest = segue.destinationViewController
            dest.modalTransitionStyle = .CrossDissolve
            let blurSegue = segue as! AFBlurSegue
            blurSegue.tintColor = UIColor(red: 0, green: 1, blue: 0, alpha: 0.1)
            blurSegue.saturationDeltaFactor = 0.5
        }
    }
}
